package com.java.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 公司信息
 * @author Administrator
 */
@Entity
@org.hibernate.annotations.Entity(
		selectBeforeUpdate = true, 
		dynamicInsert = true, 
		dynamicUpdate = true
)
@Table(name="company")
public class Company implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -9144819283252458013L;

	@Id
	@GeneratedValue
	private Long id;
	
	/**
	 * 公司名称
	 */
	@Column(length=200)
	private String name;
	
	/**
	 * 联系电话
	 */
	@Column(length=30)
	private String tel;
	
	/**
	 * 联系传真
	 */
	@Column(length=30)
	private String fax;
	
	/**
	 * Email
	 */
	@Column(length=100)
	private String email;
	
	/**
	 * MSN
	 */
	@Column(length=100)
	private String msn;
	
	/**
	 * 网址
	 */
	@Column(length=200)
	private String website;
	
	
	/**
	 * 办公地址
	 */
	@Column(length=100)
	private String address;
	
	/**
	 * 工厂地址
	 */
	@Column(length=100)
	private String factory;
	
	/**
	 * 邮编
	 */
	@Column(length=10)
	private String zipcode;
	
	/**
	 * logo
	 */
	@Column(length=200)
	private String logo;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getFax() {
		return fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getWebsite() {
		return website;
	}

	public void setWebsite(String website) {
		this.website = website;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getZipcode() {
		return zipcode;
	}

	public void setZipcode(String zipcode) {
		this.zipcode = zipcode;
	}

	public String getFactory() {
		return factory;
	}

	public void setFactory(String factory) {
		this.factory = factory;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	public String getMsn() {
		return msn;
	}

	public void setMsn(String msn) {
		this.msn = msn;
	}

}
